import java.util.Scanner;


public class MAX12 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine().toString();
        String[] arr = str.split(" ");
        int[] b = new int[arr.length];
        int j;
        for (j = 0; j < b.length; j++) {
            b[j] = Integer.parseInt(arr[j]);
            //System.out.println(b[j]);
        }
        //System.out.println("j=" + j);
        for (int i = 0; i < j; i++) {
            for (int k = 0; k <j-1-i ; k++) {
                if (b[k] < b[k+1]) {
                    int x=b[k];
                    b[k]=b[k+1];
                    b[k+1]=x;
                }
            }
        }
        int max=b[0]+b[1];
        System.out.println(max);
    }
}
